﻿@model VideoCache.Server.MVCWeb.Areas.Admin.Models.EpisodeModel

@{
    ViewBag.Title = "编辑剧集";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2 class="pageTitle">@ViewBag.Title</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.Id)
<table class="table-form">
    <tr>
        <td class="label">@Html.LabelFor(model => model.AlbumId)</td>
        <td>
            @Html.TextBoxFor(model => model.AlbumId, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.AlbumId)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.SiteId)</td>
        <td>
            @Html.DropDownList("SiteId", "请选择站点")
            @Html.ValidationMessageFor(model => model.SiteId)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.EpisodeIndex)</td>
        <td>
            @Html.EditorFor(model => model.EpisodeIndex)
            @Html.ValidationMessageFor(model => model.EpisodeIndex)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Name)</td>
        <td>
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Token)</td>
        <td>
            @Html.EditorFor(model => model.Token)
            @Html.ValidationMessageFor(model => model.Token)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Url)</td>
        <td>
            @Html.EditorFor(model => model.Url)
            @Html.ValidationMessageFor(model => model.Url)
        </td>
    </tr>
    <tr>
        <td class="label"></td>
        <td>
            @Html.EditorFor(model => model.AllowDownload) @Html.LabelFor(model => model.AllowDownload)
            @Html.ValidationMessageFor(model => model.AllowDownload)
        </td>
    </tr>
    <tr>
        <td class="label"></td>
        <td>
            <input type="submit" value="保存" />
            @Html.ActionLink("返回", "Index", new { id = Model.AlbumId })
        </td>
    </tr>
</table>
}